/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.dinner.entity.type;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 餐别管理Entity
 *
 * @author dai
 * @version 2018-11-18
 */
public class ResDinnerType extends DataEntity<ResDinnerType> {

    private static final long serialVersionUID = 1L;
    private String code;        // 餐别码
    private String name;        // 餐别名称
    private float price;        //价格

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public ResDinnerType() {
        super();
    }

    public ResDinnerType(String id) {
        super(id);
    }

    @Length(min = 1, max = 64, message = "餐别码长度必须介于 1 和 64 之间")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Length(min = 1, max = 200, message = "餐别名称长度必须介于 1 和 200 之间")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


}